Working with Movie Time
Every QuickTime movie has its own time base. A movie's time base allows all the tracks that make up the movie to be synchronized when the movie is played. The Movie Toolbox provides a number of functions that allow your application to determine and establish the time parameters of a movie. This section discusses those functions. Later sections in this chapter discuss the Movie Toolbox functions that allow you to work with the time parameters of tracks and media structures. For a complete discussion of the relationships between movie, track, and media time parameters, see "Introduction to Movies" beginning on page 2-5. For information about more functions that work with time, see "Time Base Functions" beginning on page 2-296.You can use the
GetMovieTimeBase
function to retrieve the time base for a movie.You can work with a movie's current time by calling the
GetMovieTime
,SetMovieTime
, andSetMovieTimeValue
functions.You can work with a movie's time scale by calling the
GetMovieTimeScale
andSetMovieTimeScale
functions.The Movie Toolbox can calculate the total duration of a movie. You can use the
GetMovieDuration
function to retrieve a movie's duration.Your application can call the
GetMovieRate
andSetMovieRate
to work with a movie's playback rate.
Subtopics
- GetMovieDuration
- SetMovieTimeValue
- SetMovieTime
- GetMovieTime
- SetMovieRate
- GetMovieRate
- SetMovieTimeScale
- GetMovieTimeScale
- GetMovieTimeBase